package com.purchase.order.mapper;

import com.purchase.order.domain.MaterialType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MaterialMapper {
    //新增物资大类
    int insertMaterialType(@Param("id") String id,@Param("name") String name);

    //查询是否重复
    int selectCount(@Param("name")String name);

    //修改物资
    int updateMaterial(MaterialType materialType);

    //删除物资
    int deleteMaterial(@Param("id")String id);

    //获取物资列表
    List<MaterialType> getMaterial(String name);

    List<MaterialType> getAlllist();
}
